//
//  WaitForAuditViewController.m
//  League
//
//  Created by 崔璨 on 2018/1/30.
//  Copyright © 2018年 ciyuanjuzhen. All rights reserved.
//

#import "WaitForAuditViewController.h"

@interface WaitForAuditViewController ()
{
    NSBundle *bundle;
}
@end

@implementation WaitForAuditViewController
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = YES;
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBarHidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [InternationalControl initUserLanguage];//初始化应用语言
    
    bundle = [InternationalControl bundle];
     self.title =  [bundle localizedStringForKey:@"waitAudit" value:nil table:@"hello"];
    [self setupView];
    // Do any additional setup after loading the view.
}
-(void)setupView
{
    UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.width, self.view.height/3)];
    titleLab.center = CGPointMake(self.view.width/2, self.view.height/2-titleLab.height/2);
    titleLab.text = [bundle localizedStringForKey:@"waitAuditTitle" value:nil table:@"hello"];
    titleLab.numberOfLines = 0;
    titleLab.font=[UIFont fontWithName:kFontName size:titleLab.height/8];
    titleLab.textColor = kAppColor;
    titleLab.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLab];
    
    UIButton *backBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, self.view.width/3, self.view.height/12)];
    backBtn.center = CGPointMake(self.view.width/2, titleLab.y+titleLab.height+backBtn.height);
    [backBtn setTitle:[bundle localizedStringForKey:@"back" value:nil table:@"hello"] forState:UIControlStateNormal];
    backBtn.backgroundColor = kAppColor;
    backBtn.titleLabel.font=[UIFont fontWithName:kFontName size: backBtn.height/3.5];
    [backBtn addTarget:self action:@selector(back:) forControlEvents:UIControlEventTouchDown];
    [self.view addSubview:backBtn];
}
-(void)back:(UIButton*)btn
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
